package com.badibadi.mail;

import com.badibadi.mytools.Utils;
import com.badibadi.uniclubber.R;
import com.badibadi.uniclubber.R.id;
import com.badibadi.uniclubber.R.layout;

import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

/**
 * 14 答方第二次回复后
 * 
 * 问方：没有在期限内做出回复，在5个工作日内付款给答方
 * 
 * @author Administrator
 * 
 */
public class Mail54_55Activity extends Mail245Activity {

	AlertDialog al_sheding;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentView(R.layout.activity_mail54_55);
	}

	@Override
	protected void DongTaiPeiZhi() {
		// TODO Auto-generated method stub
		// super.DongTaiPeiZhi();
		TextView title_mail=(TextView)this.findViewById(R.id.title_mail);
		title_mail.setText(getResources().getString(R.string.wx_reply_zhanneixin));
		TextView tishi=(TextView)this.findViewById(R.id.tishi);
		tishi.setText(getResources().getString(R.string.wx_yi_yuqi_kuohao));
		tishi.setVisibility(View.VISIBLE);
		this.findViewById(R.id.delete).setVisibility(View.VISIBLE);
		if (rank.equals("answerer"))// 答方
		{
			Button shedingzhixunfei = (Button) this
					.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.wx_yuqi));
			shedingzhixunfei.setVisibility(View.VISIBLE);
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					// setFees();
					LayoutInflater inflater = LayoutInflater
							.from(Mail54_55Activity.this);
					View view = inflater
							.inflate(R.layout.fukuanchenggong55, null);
					//退款工作日
					TextView refund_time=(TextView)view.findViewById(R.id.refund_time);
					refund_time.setText(""+payUserContactShow1Model.getRefund_time());
				     //支付宝手续费
		            TextView alipay_charge=(TextView)view.findViewById(R.id.alipay_charge);
		            alipay_charge.setText(payUserContactShow1Model.getAlipay_charge());
		            //达人
		            TextView expert_charge=(TextView)view.findViewById(R.id.expert_charge);
		            expert_charge.setText(payUserContactShow1Model.getExpert_charge());
		            //一般用户
		            TextView member_charge=(TextView)view.findViewById(R.id.member_charge);
		            member_charge.setText(payUserContactShow1Model.getMember_charge());

					al_sheding = new AlertDialog.Builder(Mail54_55Activity.this)
							.setView(view).show();
				}
			});

		}else
		{
			Button shedingzhixunfei = (Button) this
					.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.wx_yuqi));
			shedingzhixunfei.setVisibility(View.VISIBLE);
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					// setFees();
					LayoutInflater inflater = LayoutInflater
							.from(Mail54_55Activity.this);
					View view = inflater
							.inflate(R.layout.fukuanchenggong54, null);

					//退款工作日
					TextView refund_time=(TextView)view.findViewById(R.id.refund_time);
					refund_time.setText(""+payUserContactShow1Model.getRefund_time());

					al_sheding = new AlertDialog.Builder(Mail54_55Activity.this)
							.setView(view).show();
				}
			});
		}

	}

}
